import os


if 'Dev' in os.getenv('SERVER_SOFTWARE'):
    DEBUG = True
else:
    DEBUG = False

ROOT_PATH = os.path.dirname(__file__)

ADMIN_USERS = [
    '*',
]

STATIC_URL = {
    'debug': 'http://localhost/livehabr/',
    'app': 'http://livehabr.googlecode.com/hg/static/'
}
LIVEHABR_URL = '%slive/habrahabr_live.html' % STATIC_URL['debug'] if DEBUG else 'http://habrahabr.ru/live/'

MAIN_CSS = {
    'debug': [
        'css/source/reset.css',
        'css/source/main.css',
    ],
    'app': [
        'css/all.css',
    ],
}

MAIN_JS = {
    'debug': [
        'js/source/jquery-1.4.min.js',
        'js/source/jquery.mousewheel.min.js',
        'js/source/Debug.js',
        'js/source/FieldMove.js',
        'js/source/Main.js',
    ],
    'app': [
        'js/all.js',
    ],
}

HTML_PARAMS = {
    'debug': DEBUG, 
    'static_local': STATIC_URL['debug' if DEBUG else 'app'],
}
